﻿namespace Middleware
{
    public class Test1Middleware
    {
        private readonly RequestDelegate _next;

        public Test1Middleware(RequestDelegate next)
        {
            _next = next;
        }

        public async Task InvokeAsync(HttpContext context)
        {
            context.Response.WriteAsync("Test1Middleware start<br/>");
            await _next.Invoke(context);
            context.Response.WriteAsync("Test1Middleware end<br/>");



        }
    }
}
